import UIKit
extension CGFloat {
    static let screenWidth = UIScreen.main.bounds.size.width
    static let screenHeight = UIScreen.main.bounds.size.height
    static var topPadding: CGFloat {
        return UIApplication.shared.windows.last?.safeAreaInsets.top ?? 0
     }
    static var bottomPadding: CGFloat {
        return UIApplication.shared.windows.last?.safeAreaInsets.bottom ?? 0
     }
    static var navHeight: CGFloat {
        return topPadding > 20 ? 88 : 64
    }
    static var tabBarHeight: CGFloat {
        return topPadding > 20  ? 83.0 : 49
    }
    static var isSmallSizeDevice: Bool {
        return screenHeight <= 667.0
    }
    static func aspect(value: CGFloat) -> CGFloat {
       return CGFloat.screenWidth / 375 * value
    }
}
